﻿package webCode {
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.events.*;
	
	public class webNode extends Sprite{
		
		var radius:Number;
		var color:Number;
		var thickness:Number;
<<<<<<< .mine
		var connections:Array;
		var vx:Number;
		var vy:Number;
		var canMove:Boolean = true;
		//var nodeX:Number;
		//var nodeY:Number;
=======
		var connections:Array;
		var vx:Number;
		var vy:Number;
		var canMove:Boolean = true;
		var nodeX:Number;
		var nodeY:Number;
>>>>>>> .r5
		
<<<<<<< .mine
		public function webNode(radius:Number=10, thickness:Number=1, color:uint=0x40FF00) {
			x = 0;
			y = 0;
=======
		public function webNode(x:Number, y:Number, radius:Number=10, thickness:Number=1, color:uint=0x40FF00) {
			nodeX = x;
			nodeY = y;
>>>>>>> .r5
			this.radius = radius;
			this.color = color;
			this.thickness = thickness;
			connections = new Array();
			vx = 0;
			vy = 0;
			init();
		}
		
		public function init():void
		{
			
		}
<<<<<<< .mine
		
		public function setStatic(b:Boolean):void
		{
			canMove = b;
		}
		
		public function render():void
		{
			graphics.beginFill(color); 
			graphics.lineStyle(thickness, color);
				
			graphics.drawCircle(x, y, radius);
				
			graphics.endFill();
			trace("node drawn at "+ x+ ","+ y);
		}
=======
		
		public function setStatic(b:Boolean)
		{
			canMove = b;
		}
		
		public function render()
		{
			graphics.beginFill(color); 
			graphics.lineStyle(thickness, color);
				
			graphics.drawCircle(nodeX, nodeY, radius);
				
			graphics.endFill();
			trace("node drawn at "+ nodeX + ","+ nodeY);
		}
>>>>>>> .r5

	}
	
}
